#cs ----------------------------------------------------------------------------
	
	$Author: bjoern.kaiser $
	$LastChangedDate: 2008-05-07 12:57:19 +0000 (Wed, 07 May 2008) $
	
	Script Function:
	diskpart wrapper
	
#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

#include-once

Func _diskpart()
	Local $intRc
	Local $strCmd = "diskpart /S " & $gStrSourceDrv & _ini("DISKPART", "SCRIPT")
;~ 	If $gBinDebug Then $strCmd &= " > %TEMP%\diskpart.txt"
	_log("D", $strCmd)
	If Not $gBinTest Then $intRc = RunWait($strCmd)
	If Not $intRc Then
		_log("O", "Diskpart run successfully")
	Else
		_log("F", "Diskpart failed with RC " & $intRc)
	EndIf
	Return $intRc
EndFunc   ;==>_diskpart